<template>
  <div class="home">
    <CodeEditor :value="value" :handle-change="handleChange" />
    <!--    <MDEditor :value="value" :handle-change="handleChange" />-->
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import HelloWorld from "@/components/HelloWorld.vue";
import MDEditor from "@/components/MDEditor.vue";
import CodeEditor from "@/components/CodeEditor.vue";

const value = ref();
const handleChange = (v: string) => {
  value.value = v;
};
</script>
